#!/usr/bin/env python
from CVSView import CVSStatus, CVSLogEntry
from CVSModel import CVSModel
from CVSConstants import *

class CVSCommit(CVSModel):
  def _createCmd(self):
    dlg = CVSLogEntry()
    msg = dlg.getLogMsg()
    return ['cvs', 'commit', '-m', msg] + REL_PATHS
    
  def getAction(self):
    return 'CVS Commit'
    
  def getActivity(self):
    return 'Comitting'

if __name__ == '__main__':
  m = CVSCommit()
  v = CVSStatus(m)
  m.start()
